package a.j;

import java.awt.*;
import java.awt.geom.AffineTransform;
import java.awt.geom.Point2D;

public class ff
  implements qb
{
  protected pg a;
  protected qb b;
  public static boolean c;
  
  public ff(pg parampg, qb paramqb)
  {
    this.a = parampg;
    this.b = paramqb;
  }
  
  public Rectangle getBounds()
  {
    Rectangle localRectangle = a();
    Point2D localPoint2D = this.a.S();
    double d = 1.0D / this.a.M();
    AffineTransform localAffineTransform = new AffineTransform();
    localAffineTransform.translate(localPoint2D.getX(), localPoint2D.getY());
    localAffineTransform.scale(d, d);
    return localAffineTransform.createTransformedShape(localRectangle).getBounds();
  }
  
  public void paint(Graphics2D paramGraphics2D)
  {
    boolean bool = ld.E;
    AffineTransform localAffineTransform = paramGraphics2D.getTransform();
    pc localpc = kg.a(paramGraphics2D);
    if (((bool) || (localpc != null)) && (localpc.a() != null))
    {
      paramGraphics2D.setTransform(localpc.a());
      if (bool) {
        return;
      }
      if (!ld.D) {}
    }
    else
    {
      Point2D localPoint2D = this.a.S();
      double d = 1.0D / this.a.M();
      paramGraphics2D.translate(localPoint2D.getX(), localPoint2D.getY());
      paramGraphics2D.scale(d, d);
    }
    a(paramGraphics2D);
    paramGraphics2D.setTransform(localAffineTransform);
  }
  
  protected void a(Graphics2D paramGraphics2D)
  {
    this.b.paint(paramGraphics2D);
  }
  
  protected Rectangle a()
  {
    return this.b.getBounds();
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.ff

 * JD-Core Version:    0.7.0.1

 */